package com.contract.common.util;

import lombok.experimental.UtilityClass;

import java.io.File;

/**
 * 常量工具
 *
 * @author liw
 * @version 1.0
 * @date 2022/6/10 16:39
 */
@UtilityClass
public class Constant {

    // 官网获取的 API Key 更新为你注册的
    public static final String CLIENT_ID = "T1XZnU8T3sAO5qaC3IopA2ax";
    // 官网获取的 Secret Key 更新为你注册的
    public static final String CLIENT_SECRET = "hT2ClbjHVUyOGfjRS7Yz0YLBKp1f0uzA";

    public static final String AUTH_URL = "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=%s&client_secret=%s";

    public static final String MATCH_URL = "https://aip.baidubce.com/rest/2.0/face/v3/match?access_token=";

    public static final String ID_CARD_URL = "https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=";

    /**
     * 微信app id
     */
    public static final String APP_ID = "wx81a7c7b9ecb56074";

    /**
     * 微信secret
     */
    public static final String SECRET = "d1662ed7702c00142c1929d3bf96fdf4";

    /**
     * 微信小程序授权登录请求的网
     */
    public static final String WX_LOGIN_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    public static final String SLASH = "/";
    public static final String SLASH2 = "\\";

    public static final String CORPORATION_PATH = "template" + File.separator + "corporation.png";

    public static final String STAMP_PATH = "template" + File.separator + "stamp.png";

    public static final String CORPORATION_PATH_TEST = "template" + File.separator + "corporation_test.png";

    public static final String STAMP_PATH_TEST = "template" + File.separator + "stamp_test.png";

    public static final String USER_PATH_TEST = "template" + File.separator + "user_test.png";

}
